﻿namespace Complaint.Models
{
    public abstract class BaseModel<T> where T: class, new()
    {
        private T _repository;

        public T Repository
        {
            get
            {
                if (_repository == null)
                {
                    _repository = new T();
                }
                return _repository;
            }
            set { _repository = value; }
        }
    }
}
